using System;
using System.Collections;
using System.Collections.Generic;

namespace HsVoice
{
    public class HsSynthRequest
    {
        public App app;
        public Audio audio;
        public Request request;
        public User user;

        public HsSynthRequest(App app,User user,Audio audio,Request request)
        {
            this.app = app;
            this.audio = audio;
            this.user = user;
            this.request = request;
        }
    }
    
    public class App
    {
        public string appid = HsApp.APP_ID;
        public string token = HsApp.APP_TOKEN;
        public string cluster ="volcano_tts";
    }


    public class User
    {
        public string uid = Guid.NewGuid().ToString();
    }

    public class Audio
    {
        public string voice_type; 
        public string encoding = "mp3";
        public double speed_ratio = 1f;
        public double volume_ratio =1f;
        public double pitch_ratio =1f;
        public string emotion ="happy";
        public string language ="cn";
    }

    public class Request    
    {
        public string operation ="submit";
        public string reqid =Guid.NewGuid().ToString();
        public string text;
        public string text_type ="plain";
        // public int silence_duration;
    }
}



